package PhamVanHien;

public class LTHDT_NVGAME {
	// 1.Bien toan cuc- Dataflied
//la bien khai bao ben ngoai cac phuong thuc - thuoc tinh, pham vi ben trong lop doi tuong nay, mac dinh pham vi la Public
	
	
	
	private String TenNV;
	private int CapDo;
	private String KiNang;
	private String BinhKhi;
	/*
	 * public void VIDU(){ int MaNV = 10; TenNV = "SonGuKu";
	 * 
	 * } public void VIDU1(){ //MaNV bao loi ko truy cap dk TenNV = "KungFu"; }
	 */
	// 2.Ham khoi tao
	// dac diem cua ham khoi tao: la ham dk chay dau tien nhat khi doi tuong dk
	// sinh ra
	// mac dinh la public
	// co 2 dang ham khoi dung: ko tham so va co tham so
	// trung ten voi ten lop doi tuong
	//TH khi lop doi tuong ko DN bat cu 1 doi tuong thi co 1 ham khoi dung ko tham so se dk tao ra
	//Neu co ham khoi dung co tham so thi ko the tu tao ra ham khoi dung ko tham so dk
	//Khong co gia tri tra ve
	//Ham khoi dung ko cho ta goi truc tiep dk ma chi goi thong qua qua trinh khoi tao doi tuong
	//a. Ham khoi dung ko tham so
	public LTHDT_NVGAME(){
		//SD de khoi tao thong tin mac dinh cho doi tuong
		TenNV = "MeCuaBan";
		CapDo = 1;
		BinhKhi = "Cung";
		KiNang = "Chay Than Toc";
	}
	//a. Ham khoi dung co tham so
	LTHDT_NVGAME(String pTenNV, int CapDo, String KiNang, String BinhKhi){
		//SD de khoi tao thong tin theo tham so truyen vao
		//Cu phap: <Bien Toan Cuc> = <Tham So>;
		TenNV = pTenNV;
		this.CapDo = CapDo;
		this.KiNang = KiNang;
		this.BinhKhi = BinhKhi;
	}
	//3.thuoc tinh cua doi tuong
	//la phuong thuc bieu dien thong tin cho dataflied trong lop doi tuong
	//co the la Get hoac set
	//get: tra thoong tin dataflied hien thoi cho Views
	//set: thiet lap thong tin cho doi tuong qua dataflied
	//get: thuoc tinh doc
	public String getTenNV(){
		return TenNV;
	}
	//set: thuoc tinh ghi
	public void setTenNV(String pTenNV){
		TenNV = pTenNV;
	}
	public int getCapDo() {
		return CapDo;
	}
	public void setCapDo(int capDo) {
		CapDo = capDo;
	}
	public String getKiNang() {
		return KiNang;
	}
	public void setKiNang(String kiNang) {
		KiNang = kiNang;
	}
	public String getBinhKhi() {
		return BinhKhi;
	}
	public void setBinhKhi(String binhKhi) {
		BinhKhi = binhKhi;
	}
	
	//tu dong tao ra cac thuoc tinh
	//Right Click--Source--Generrate Getter and Setter
	
	
	//4. Hanh vi cua doi tuong
	public String Bay(int tocdo){
		return "Bay voi toc do: "+tocdo;
	}
}
